package demo.java.b_cases;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;

public class Demo04_otherwise extends SimpleTagSupport {
	@Override
	public void doTag() throws JspException, IOException {
		//从choose父标签那里得到when的test的值
		Demo02_choose choose=(Demo02_choose)this.getParent();
		boolean test=choose.getFlag();
		if(!test){
			this.getJspBody().invoke(null);
		}
	}
}
